import { MockMethod } from 'vite-plugin-mock'

const carouselField =[{
  "columnName": "click_count",
  "columnType": "int",
  "columnComment": "",
  "columnDefault": "",
  "name": "clickCount",
  "type": "Integer"
}, {
  "columnName": "create_by",
  "columnType": "varchar",
  "columnComment": "",
  "columnDefault": "",
  "name": "createBy",
  "type": "String"
}, {
  "columnName": "create_time",
  "columnType": "datetime",
  "columnComment": "",
  "columnDefault": "",
  "name": "createTime",
  "type": "Date"
}, {
  "columnName": "delete_by",
  "columnType": "varchar",
  "columnComment": "",
  "columnDefault": "",
  "name": "deleteBy",
  "type": "String"
}, {
  "columnName": "delete_status",
  "columnType": "varchar",
  "columnComment": "",
  "columnDefault": "",
  "name": "deleteStatus",
  "type": "String"
}, {
  "columnName": "delete_time",
  "columnType": "datetime",
  "columnComment": "",
  "columnDefault": "",
  "name": "deleteTime",
  "type": "Date"
}, {
  "columnName": "description",
  "columnType": "varchar",
  "columnComment": "",
  "columnDefault": "",
  "name": "description",
  "type": "String"
}, {
  "columnName": "id",
  "columnType": "varchar",
  "columnComment": "",
  "columnDefault": "",
  "name": "id",
  "type": "String"
}, {
  "columnName": "img_url",
  "columnType": "varchar",
  "columnComment": "",
  "columnDefault": "",
  "name": "imgUrl",
  "type": "String"
}, {
  "columnName": "remark",
  "columnType": "varchar",
  "columnComment": "",
  "columnDefault": "",
  "name": "remark",
  "type": "String"
}, {
  "columnName": "status",
  "columnType": "varchar",
  "columnComment": "",
  "columnDefault": "",
  "name": "status",
  "type": "String"
}, {
  "columnName": "target",
  "columnType": "varchar",
  "columnComment": "",
  "columnDefault": "",
  "name": "target",
  "type": "String"
}, {
  "columnName": "title",
  "columnType": "varchar",
  "columnComment": "",
  "columnDefault": "",
  "name": "title",
  "type": "String"
}, {
  "columnName": "update_by",
  "columnType": "varchar",
  "columnComment": "",
  "columnDefault": "",
  "name": "updateBy",
  "type": "String"
}, {
  "columnName": "update_time",
  "columnType": "datetime",
  "columnComment": "",
  "columnDefault": "",
  "name": "updateTime",
  "type": "Date"
}, {
  "columnName": "url",
  "columnType": "varchar",
  "columnComment": "",
  "columnDefault": "",
  "name": "url",
  "type": "String"
}]

export default [
  {
    url: '/mock/tool/generate/getTables',
    method: 'get',
    response: ({ query,data }) => {
      return {
        code: 200,
        data: {
          tableName: ['carousel']
        },
        message: '操作成功',
        total: 40
      }
    }
  },
  {
    url: '/mock/tool/generate/getTableField/carousel',
    method: 'get',
    response: ({ query,data }) => {
      return {
        code: 200,
        data: {
          beanName: "Carousel",
          fields: carouselField
        },
        message: '操作成功',
        total: 40
      }
    }
  }
] as MockMethod[]